package org.footballmanager.pandafootball.system.service;

import org.footballmanager.pandafootball.system.domain.FootLevelUp;
import org.footballmanager.pandafootball.system.domain.FootSociaty;
import org.footballmanager.pandafootball.system.form.impl.FootLevelUpSearchForm;
import org.springframework.ui.Model;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface FootLevelUpService extends BaseService<FootLevelUp> {
    /**
     * 查询
     *
     * @param entityname            实体类名
     * @param map                   橙色
     * @param footLevelUpSearchForm 条件
     */
    void search(String entityname, Model map, FootLevelUpSearchForm footLevelUpSearchForm);

    /**
     * 删除所有
     *
     * @param footLevelUpSearchForm 条件
     * @param request               请求
     */
    void deleteAll(FootLevelUpSearchForm footLevelUpSearchForm, HttpServletRequest request);

    /**
     * 生成等级算法
     *
     * @param request 请求
     */
    void calculateLevel(HttpServletRequest request);

    /**
     * 计算等级
     *
     * @param footSociaty 实体类
     * @param request     请求
     * @return 等级实体
     */
    FootLevelUp calculateLevel(FootSociaty footSociaty, HttpServletRequest request);

    /**
     * 查询
     *
     * @param footLevelUpSearchForm 条件
     * @return 列表
     */
    List<FootLevelUp> findall(FootLevelUpSearchForm footLevelUpSearchForm);
}